package com.ldy.thoughtWorks.question1;

/**
 * <br>
 * 版权: Copyright (c) 2011-2018<br>
 * 公司: 活力天汇<br>
 *
 * @author: 刘德咏<br>
 * @date: 2018-07-25<br>
 */
public class Route {
    /**
     * 路线下的节点
     */
    private Node node;
    /**
     * 节点权重
     */
    private int weight;

    public Node getNode() {
        return node;
    }

    public void setNode(Node node) {
        this.node = node;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public Route(Node node, int weight) {
        this.node = node;
        this.weight = weight;
    }

    public Route() {
    }
}
